this._ibusManager.connect('set-content-type', this._ibusSetContentType.bind(this));
global.display.connect('modifiers-accelerator-activated', this._modifiersSwitcher.bind(this));
+ global.backend.connect('keymap-layout-group-changed', this._layoutGroupChanged.bind(this));
this._sourcesPerWindow = false;
this._focusWindowNotifyId = 0;
return true;
}
+ _layoutGroupChanged(backend, idx) {
+ const is = this._inputSources[idx];
+ this._currentInputSourceChanged(is);
+ this._keyboardManager.apply(is.xkbId);
+ }
+
_switchInputSource(display, window, event, binding) {
if (this._mruSources.length < 2)
return;